package com.wnxy.sddfp.payback.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 借款人还款计划
 * </p>
 *
 * @author Jet
 * @since 2023-05-17
 */
@Getter
@Setter
@ToString
@TableName("borrower_pay_plan")
@ApiModel(value = "BorrowerPayPlan对象", description = "借款人还款计划")
public class BorrowerPayPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId
    private Long id;

    @ApiModelProperty("借款人用户ID")
    private Long userId;

    @ApiModelProperty("借款人用户编码")
    private String userCode;

    @ApiModelProperty("借款标识")
    private Long borrowRecordId;

    @ApiModelProperty("借款编码")
    private String borrowRecordNo;

    @ApiModelProperty("期数")
    private Integer numberOfPeriods;

    @ApiModelProperty("还款利息")
    private BigDecimal interest;

    @ApiModelProperty("还款本金")
    private BigDecimal principal;

    @ApiModelProperty("本息")
    private BigDecimal amount;

    @ApiModelProperty("应还时间")
    private LocalDateTime shouldPayDate;

    @ApiModelProperty("应还状态0.待还,1.已还， 2.部分还款")
    private String payStatus;

    @ApiModelProperty("计划创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty("年化利率(平台佣金，利差)")
    private BigDecimal commission;


}
